import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import axios from "axios";
import VueAxios from "vue-axios";
import { ElPagination } from "element-plus/lib/components/";
import "element-plus/theme-chalk/index.css";

axios.defaults.baseURL = "/api";
// 要求在请求头里带cookie
// axios.defaults.withCredentials = true;
createApp(App)
  .use(store)
  .use(router)
  .use(VueAxios, axios)
  .use(ElPagination)
  .mount("#app");
